package com.kfgj.hkp.manager.dept;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.stereotype.Component;

/**
 * @AUTHOR 李文思汗
 * @Description 类描述:bean初始加载信息
 */
@Component
public class InitBeanInfo implements BeanPostProcessor {
    Logger logger = LoggerFactory.getLogger(InitBeanInfo.class);
    @Override
    public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
        logger.debug ("正在启动bean——"+beanName);
        return bean;
    }

    @Override
    public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
        logger.debug (beanName+"——启动完成");
        return bean;
    }

}
